package com.example.service;

import com.example.dto.UserRoleDto;
import com.example.dto.UserStatusDto;
import com.example.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.utils.ResponseResult;

/**
* @author sprite-pc
* @description 针对表【sys_user(用户表)】的数据库操作Service
* @createDate 2023-12-17 22:14:45
*/
public interface UserService extends IService<User> {

    ResponseResult login(User user);

    ResponseResult userInfo(Long userId);

    ResponseResult register(User user);

    ResponseResult updateUserInfo(User user);

    ResponseResult getList(int pageNum, int pageSize, String userName, String phonenumber, String status);

    ResponseResult changeStatus(UserStatusDto userStatusDto);

    ResponseResult getUser(Long id);

    ResponseResult updateUser(UserRoleDto userRoleDto);
}
